<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Nfc Interactor: ndefnfcstorelinkrecord.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="nfcinteractor80.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Nfc Interactor
   &#160;<span id="projectnumber">2.1.0</span>
   </div>
   <div id="projectbrief">Shows all information about NFC tags available through Qt Mobility APIs. Includes reusable convenience classes for handling additional tag types: Smart Poster, Image and vCard.</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">ndefnfcstorelinkrecord.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef NDEFNFCSTORELINKRECORD_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define NDEFNFCSTORELINKRECORD_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;QNdefMessage&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;QNdefRecord&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;QString&gt;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;QUrl&gt;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;QNdefNfcUriRecord&gt;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;ndefnfcsprecord.h&quot;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;ndefnfcsmarturirecord.h&quot;</span>
<a name="l00011"></a>00011 
<a name="l00012"></a>00012 QTM_USE_NAMESPACE
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 <span class="comment">// Web server is using a rule to rewrite &quot;dl&quot; to &quot;dl.php&quot;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#define DEFAULT_STORELINK_WEBSERVICE_URL &quot;http://nfcinteractor.com/dl&quot;</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00053"></a><a class="code" href="class_ndef_nfc_store_link_record.html">00053</a> <span class="keyword">class </span><a class="code" href="class_ndef_nfc_store_link_record.html" title="Create an app store link to download the app, either direct or for multiple stores using the nfcinter...">NdefNfcStoreLinkRecord</a> : <span class="keyword">public</span> <a class="code" href="class_ndef_nfc_smart_uri_record.html" title="Smart class that uses the smallest possible NDEF record type for storing the requested information - ...">NdefNfcSmartUriRecord</a>
<a name="l00054"></a>00054 {
<a name="l00055"></a>00055 <span class="keyword">public</span>:
<a name="l00056"></a>00056     <a class="code" href="class_ndef_nfc_store_link_record.html#aadc88e8e3c200d9a9550fbbd2a984ec9" title="Create an empty App Store Link record.">NdefNfcStoreLinkRecord</a>();
<a name="l00057"></a>00057     <a class="code" href="class_ndef_nfc_store_link_record.html#aadc88e8e3c200d9a9550fbbd2a984ec9" title="Create an empty App Store Link record.">NdefNfcStoreLinkRecord</a>(<span class="keyword">const</span> QUrl&amp; <a class="code" href="class_ndef_nfc_store_link_record.html#a527400f58827b59bf4956c87594010a6" title="Get the current web service URL.">webServiceUrl</a>);
<a name="l00058"></a>00058 
<a name="l00059"></a>00059 <span class="keyword">public</span>:
<a name="l00061"></a><a class="code" href="class_ndef_nfc_store_link_record.html#a860405a03d4ce60fd624c7b0a87f509e">00061</a>     <span class="keyword">enum</span> <a class="code" href="class_ndef_nfc_store_link_record.html#a860405a03d4ce60fd624c7b0a87f509e">AppStore</a> {
<a name="l00062"></a>00062         StoreNokia = 0,
<a name="l00063"></a>00063         StoreSymbian,
<a name="l00064"></a>00064         StoreMeeGoHarmattan,
<a name="l00065"></a>00065         StoreSeries40,
<a name="l00066"></a>00066         StoreWindowsPhone,
<a name="l00067"></a>00067         StoreAndroid,
<a name="l00068"></a>00068         StoreiOS,
<a name="l00069"></a>00069         StoreBlackberry,
<a name="l00070"></a>00070         StoreCustomName
<a name="l00071"></a>00071     };
<a name="l00072"></a>00072 
<a name="l00073"></a>00073 <span class="keyword">public</span>:
<a name="l00074"></a>00074     QUrl <a class="code" href="class_ndef_nfc_store_link_record.html#a527400f58827b59bf4956c87594010a6" title="Get the current web service URL.">webServiceUrl</a>() <span class="keyword">const</span>;
<a name="l00075"></a>00075     <span class="keywordtype">void</span> <a class="code" href="class_ndef_nfc_store_link_record.html#a1cba6465d662b8c3ac8e1d84153bc7d2" title="Set the web service URL.">setWebServiceUrl</a>(<span class="keyword">const</span> QUrl&amp; webServiceUrl);
<a name="l00076"></a>00076     <span class="keywordtype">void</span> <a class="code" href="class_ndef_nfc_store_link_record.html#a6caa684ab9b06bf96e35b82d0325864f" title="Add an app id for a specified app store.">addAppId</a>(<span class="keyword">const</span> <a class="code" href="class_ndef_nfc_store_link_record.html#a860405a03d4ce60fd624c7b0a87f509e">AppStore</a> appStore, <span class="keyword">const</span> QString&amp; <a class="code" href="class_ndef_nfc_store_link_record.html#afcf1e422961b1bd38a59500fb2a78af4" title="Retrieve the app id for the specified app store, if it has already been set.">appId</a>);
<a name="l00077"></a>00077     QString <a class="code" href="class_ndef_nfc_store_link_record.html#afcf1e422961b1bd38a59500fb2a78af4" title="Retrieve the app id for the specified app store, if it has already been set.">appId</a>(<a class="code" href="class_ndef_nfc_store_link_record.html#a860405a03d4ce60fd624c7b0a87f509e">AppStore</a> appStore) <span class="keyword">const</span>;
<a name="l00078"></a>00078 
<a name="l00079"></a>00079 <span class="keyword">private</span>:
<a name="l00080"></a>00080     <span class="keywordtype">void</span> updatePayload();
<a name="l00081"></a>00081     QUrl generateStoreLink(<span class="keyword">const</span> <a class="code" href="class_ndef_nfc_store_link_record.html#a860405a03d4ce60fd624c7b0a87f509e">AppStore</a> appStore, <span class="keyword">const</span> QString&amp; <a class="code" href="class_ndef_nfc_store_link_record.html#afcf1e422961b1bd38a59500fb2a78af4" title="Retrieve the app id for the specified app store, if it has already been set.">appId</a>);
<a name="l00082"></a>00082     QUrl generateMultiStoreLink();
<a name="l00083"></a>00083     QString getWebCharForAppStore(<span class="keyword">const</span> <a class="code" href="class_ndef_nfc_store_link_record.html#a860405a03d4ce60fd624c7b0a87f509e">NdefNfcStoreLinkRecord::AppStore</a> appStore);
<a name="l00084"></a>00084 
<a name="l00085"></a>00085 <span class="keyword">private</span>:
<a name="l00086"></a>00086     QUrl m_webServiceUrl;
<a name="l00087"></a>00087     QHash&lt;AppStore,QString&gt; m_appIds;
<a name="l00088"></a>00088 };
<a name="l00089"></a>00089 
<a name="l00090"></a>00090 <span class="preprocessor">#endif // NDEFNFCSTORELINKRECORD_H</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Properties</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Mon Mar 12 2012 13:32:48 for Nfc Interactor by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
